#include "KernelLock.h"
#include "system.h"

KernelLock::KernelLock()
{
	available=false;
}

KernelLock::KernelLock(char* name)
{
	lock=new Lock(name);
	available=true;
	toBeDeleted=false;
	space=currentThread->space;
}
KernelLock::~KernelLock(){}

KernelCondition::KernelCondition()
{
	available=false;
}
KernelCondition::KernelCondition(char* name)
{
	cond=new Condition(name);
	available=true;
	toBeDeleted=false;
	space=currentThread->space;
}

KernelCondition::~KernelCondition(){}
